﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/anon.Master" AutoEventWireup="true" CodeBehind="vote.aspx.cs" Inherits="Ciripescu_WebRole.vote" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <noscript> 
                Ai ajuns pe pagina de vot a lui <%=userName %>, in cadrul unui concurs de popularitate, cu premii marfa. <br />Apasa pe butonul de mai jos pentru a da un vot lui <%=userName %>.
                <asp:Button ID="VoteB" runat="server" Text="Voteaza" onclick="VoteB_Click" />
            </noscript>
            <div id="vot_ok" runat="server" visible="false">
                Votul tau pentru <%=userName %> a fost contorizat. El are acuma <%=nrVoturi %> voturi.<br /><br />Cand ajunge la 1000 de voturi va castiga automat ....ceva....
            </div>
            <div id="vot_prea_des" runat="server" visible="false">
                L-ai mai votat pe <%=userName %> azi. Poti sa-l votezi din nou in <%=sePoateVotaIn %>.
            </div>
            <div id="errors" runat="server" class="errors">
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <asp:Timer ID="Timer1" runat="server" Interval="4000" ontick="Timer1_Tick" 
    Enabled="False">
    </asp:Timer>--%>
    <div id="divJavascript" runat="server" visible="false">
        <script type="text/javascript">
            function raiseAsyncPostback() {
                __doPostBack("<%= this.VoteB.UniqueID %>", "");
            }
            setTimeout('raiseAsyncPostback()', 1000);
        </script>
    </div>
</asp:Content>
